package com.tequila.core.service;

import com.tequila.domain.dto.FileDto;
import com.tequila.domain.entity.File;
import com.tequila.domain.query.FileQuery;

import fe.core.Pagination;

import java.util.List;
import java.util.Map;

public interface FileService {

    public Pagination<FileDto> queryPageListByParam(FileQuery query);

    public FileDto queryById(Long id);

    public List<FileDto> queryByIdList(List<Long> idList);

    public List<FileDto> queryListByParam(FileQuery query);

    public Long insert(File entity);

    public Long save(File entity);

    public int updateById(File param);

    public int updateSelectiveById(File param);

    public int deleteById(Long id);

    public int deleteByIdList(List<Long> idList);

    public int saveFile(File file);

    public List<String> convertFileIdList(String fileIdListStr, Map<Long,File> fileMap);
}
